﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	
	xmlns:ext="clr-namespace:System.Windows.Extensions;assembly=Chrome"
	
	x:Class="Emessenger.Connexion"
    Title="Login" 
    Height="417" Width="265" 
	 
    
	
    MouseLeftButtonDown="Deplasser_fenetre" 
    ResizeMode="NoResize"
    WindowStartupLocation="CenterScreen" Icon="Images/EspriTalk.png"
	
	>
	
	<Window.Resources>
	<Style x:Key="roundTextBox" TargetType="{x:Type TextBox}"> 
    <Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> 
    <Setter Property="AllowDrop" Value="true" /> 
    <Setter Property="Background" Value="Transparent"></Setter> 
    <Setter Property="HorizontalContentAlignment" Value="Stretch" /> 
    <Setter Property="VerticalContentAlignment" Value="Stretch" /> 
    <Setter Property="FontFamily" Value="Segoe UI" /> 
    <Setter Property="FontSize" Value="12" /> 
    <Setter Property="Padding" Value="8,5,3,3" /> 
    <Setter Property="BorderThickness" Value="0" /> 
    <Setter Property="Template"> 
        <Setter.Value> 
            <ControlTemplate TargetType="{x:Type TextBox}"> 
                <Grid> 
                    <Border x:Name="BorderBase" Background="White" BorderThickness="2,2,2,2" 
                            BorderBrush="Silver" CornerRadius="10" /> 
                    <Label x:Name="TextPrompt" Content="{TemplateBinding Tag}" Visibility="Collapsed" Focusable="False"  Foreground="Silver">
					</Label> 
                    <ScrollViewer Margin="0" x:Name="PART_ContentHost"  /> 
                </Grid> 
                <ControlTemplate.Triggers>  
                    <MultiTrigger> 
                        <MultiTrigger.Conditions> 
                            <Condition Property="IsFocused" Value="False"></Condition> 
                            <Condition Property="Text" Value=""></Condition> 
                        </MultiTrigger.Conditions> 
                        <MultiTrigger.Setters> 
                            <Setter Property="Visibility" TargetName="TextPrompt" Value="Visible"></Setter> 
                        </MultiTrigger.Setters> 
                    </MultiTrigger> 
                    <Trigger Property="IsFocused" Value="True"> 
                        <Setter Property="BorderThickness" TargetName="BorderBase" Value="2.4,2.4,1,1"></Setter> 
                    </Trigger> 
                    <Trigger Property="IsEnabled" Value="False"> 
                        <Setter Property="Foreground" Value="DimGray" /> 
                    </Trigger> 
                </ControlTemplate.Triggers> 
            </ControlTemplate> 
        </Setter.Value> 
    </Setter> 
</Style>	






<Style x:Key="roundPasswordBox" TargetType="{x:Type PasswordBox}"> 
    <Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> 
    <Setter Property="AllowDrop" Value="true" /> 
    <Setter Property="Background" Value="Transparent"></Setter> 
    <Setter Property="HorizontalContentAlignment" Value="Stretch" /> 
    <Setter Property="VerticalContentAlignment" Value="Stretch" /> 
    <Setter Property="FontFamily" Value="Segoe UI" /> 
    <Setter Property="FontSize" Value="12" /> 
    <Setter Property="Padding" Value="8,5,3,3" /> 
    <Setter Property="BorderThickness" Value="0" /> 
    <Setter Property="Template"> 
        <Setter.Value> 
            <ControlTemplate TargetType="{x:Type PasswordBox}"> 
                <Grid> 
                    <Border x:Name="BorderBase" Background="White" BorderThickness="2,2,2,2" 
                            BorderBrush="Silver" CornerRadius="10" /> 
                    <Label x:Name="TextPrompt" Content="{TemplateBinding Tag}" Visibility="Collapsed" Focusable="False"  Foreground="Silver">
					</Label> 
                    <ScrollViewer Margin="0" x:Name="PART_ContentHost"  /> 
                </Grid> 
                <ControlTemplate.Triggers>  
                    <MultiTrigger> 
                        <MultiTrigger.Conditions> 
                            <Condition Property="IsFocused" Value="False"></Condition> 
                           	<!-- <Condition Property="Password" Value=""></Condition> --> 
                        </MultiTrigger.Conditions> 
                        <MultiTrigger.Setters> 
                            <Setter Property="Visibility" TargetName="TextPrompt" Value="Visible"></Setter> 
                        </MultiTrigger.Setters> 
                    </MultiTrigger> 
                    <Trigger Property="IsFocused" Value="True"> 
                        <Setter Property="BorderThickness" TargetName="BorderBase" Value="2.4,2.4,1,1"></Setter> 
                    </Trigger> 
                    <Trigger Property="IsEnabled" Value="False"> 
                        <Setter Property="Foreground" Value="DimGray" /> 
                    </Trigger> 
                </ControlTemplate.Triggers> 
            </ControlTemplate> 
        </Setter.Value> 
    </Setter> 
</Style>	




	</Window.Resources>
<!--   ////////////////////////////////////////////////////////////////////////////////////////////////////////   -->	
	
	<ext:WindowChrome.WindowChrome>
        <ext:WindowChrome
          ClientBorderThickness="-1" />
    </ext:WindowChrome.WindowChrome>
	
    <Grid >
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="306"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="417"/>
    	</Grid.RowDefinitions>
	<!--
        <Rectangle RadiusX="10" RadiusY="10" Grid.RowSpan="6" Margin="12,37,12,14" Grid.ColumnSpan="2">
            <Rectangle.Fill>
                <ImageBrush ImageSource="/Images/19.jpg" Stretch="UniformToFill" />
            </Rectangle.Fill>
			
			
        </Rectangle>  -->
			
    	
     
        <TextBox 
				 Tag="User Name " Style="{StaticResource roundTextBox}"
                 Margin="23,207.116,70,180.076" 
                 x:Name="LoginBox" 
                 RenderTransformOrigin="0.5,0.5" 
				 FontWeight="Bold" />
				 
				 
				 
				 
		<PasswordBox 
				Tag="Password " Style="{StaticResource roundPasswordBox}"
				Margin="23,0,70,137.076"
                x:Name="textBox1" Height="30" VerticalAlignment="Bottom"
				FontWeight="Bold" />
				
				
				
		<Button Height="23" 
                Margin="0,0,73,97.897" 
                x:Name="button1" 
                VerticalAlignment="Bottom" 
                Click="connect" 
                Content="Sign In" HorizontalAlignment="Right" Width="71.72"/>
        
        		
        
        <Label 
			Visibility="Hidden"
			Margin="45,155.145,0,0" x:Name="label1"
			   Content="Username :"
			   FontWeight="Bold" Height="27.869" VerticalAlignment="Top" HorizontalAlignment="Left" Width="107" />
        <Label 
		
		Margin="21,126.116,0,0" x:Name="label2"
			   Content="login" VerticalAlignment="Top" Height="72.137" FontSize="48" FontFamily="Corbel" HorizontalAlignment="Left" Width="131" Background="{x:Null}" >
        	<Label.Effect>
        		<DropShadowEffect ShadowDepth="1"/>
        	</Label.Effect>
        </Label>
			   
			   
        
        <CheckBox Height="16" Margin="34,296.623,0,0" x:Name="checkBox1" VerticalAlignment="Top"  Content="Remember Me" HorizontalAlignment="Left" Width="109" />
        <Label Margin="5,0,52,34.135" x:Name="label3" Content="" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" Height="39.722"
               />
        <Image Margin="11,12.489,118,0" Source="Images/EspriTalk.png" Stretch="Fill" VerticalAlignment="Top" Height="83.511">
        	<Image.Effect>
        		<DropShadowEffect BlurRadius="17"/>
        	</Image.Effect>
        </Image>
        
    </Grid>
</Window>
